package net.zjitc.mapper;

import net.zjitc.pojo.Orders;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    List<Orders> findOrdersByUid(int id);

    List<Orders> findAll();

    int createOrder(Orders orders);

    int updatePayState(@Param(value = "id") String out_trade_no,
                       @Param(value = "state") Integer state);
}
